package com.qfjy.service.impl.example4;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * @ClassName ScanPayServiceImpl
 * @Description TODO
 * @Author guoweixin
 * @Date 2022/11/22
 * @Version 1.0
 */
@Service
@Slf4j
public class ScanPayServiceImpl {


    /**
     * 微信服务器支付逻辑
     */
    @RabbitListener(queues = {"scanPay.direct.weixinQueue"})
    public void weixinScanPay(double balance){
        log.info("微信服务器进行支付操作："+balance);
    }

    /**
     * 支付宝服务器支付逻辑
     */
    @RabbitListener(queues = {"scanPay.direct.zhifubaoQueue"})
    public void zhifubaoScanPay(double balance){
        log.info("支付宝服务器进行支付操作："+balance);
    }
}
